package com.atguigu.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("resource")
public class Controller02Resource {

    @GetMapping("/public/one")
    public String one() {
        return "public res one";
    }

    @GetMapping("/public/two")
    public String two() {
        return "public res two";
    }

    @GetMapping("/private/three")
    public String three() {
        return "private res three";
    }

    @GetMapping("/private/four")
    public String four() {
        return "private res four";
    }

    @GetMapping("/private/five")
    public String five() {
        return "private res five";
    }

    @GetMapping("/private/six/good")
    public String six() {
        return "private res six";
    }
}
